<div class="span12">
    <fieldset>
        <div class="row">
            <p class="right">
                <a id="categoryAddBtn" class="btn btn-primary" href="javascript:void(0);">
                    <i class="icon-plus icon-white"></i> Thêm chuyên mục
                </a>
            </p>
        </div>
        <div id="cateErrorMsg" class="alert alert-error hide"></div>
        <div id="cateSuccessMsg" class="alert alert-success hide"></div>
        <form id="categoryAddFrom" name="categoryAddFrom" class="well form-inline hide">
            <h4>Thêm chuyên mục mới</h4><br/>
            <p>
                <label class="checkbox">
                    <select id="cateParent" name="cateParent" class="span12">
                        <option value="0">Root</option>
                        <?php foreach ($arrCategory as $cate) { ?>
                        <option value="<?php echo $cate['category_id']; ?>"><?php echo $cate['title']; ?></option>
                        <?php } ?>
                    </select>
                </label>
                <input type="text" id="cateName" name="cateName" placeholder="Tên chuyên mục"/>
                <input type="text" id="cateInfo" name="cateInfo" class="w500" placeholder="Mô tả"/>
                <label class="checkbox">
                    <select name="cateStatus" class="span12">
                        <option value="1">Enable</option>
                        <option value="0">Disable</option>
                    </select>
                </label>
                <button type="submit" id="cateBtnCreate" class="btn" onclick="return addCategory();">Tạo mới</button>
                <button type="submit" id="cateBtnUpdate" class="btn hide" onclick="return updateCategory();">Lưu thay đổi</button>
                <input type="hidden" id="cateUpdateID" name="cateUpdateID" value=""/>
            </p>
        </form>
        <div id="list-category"></div>
    </fieldset>
</div>
<!-- The main application script -->
<script src="<?php echo base_url(); ?>static/js/be_category.js"></script>